onmousemove = function (e) {
    var x = e.pageX;
    var y = e.pageY;
    var img = new Image();
    img.src = "../img/2.webp";
    img.style.top = y + 10 + "px";
    img.style.left = x + 10 + "px";
    img.className="imgs1"
    //图片的加载速度 比 js的执行速度要慢
    img.onload = function () {//图片加载完毕后，才会执行里面的操作
        img.style.opacity = "0";
        img.style.transform = "rotate(360deg) scale(0)";
        
    }
    bd.appendChild(img);
}


setInterval(() => {
    var imgs = document.querySelectorAll("imgs1");
            for (var i = 0; i < imgs.length - 20; i++) {
                imgs[i].remove();
            }
}, 2000)